package oa.web.user.action;

import oa.service.user.UserService;
import oa.web.user.vo.UserVo;

import com.opensymphony.xwork2.ActionSupport;

public class SaveUserAction extends ActionSupport {
	private UserVo userVo;

	private UserService userService;

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	@Override
	public String execute() throws Exception {
		this.userService.save(userVo);
		return SUCCESS;
	}

	public UserVo getUserVo() {
		return userVo;
	}

	public void setUserVo(UserVo userVo) {
		this.userVo = userVo;
	}

}
